<%- include('../layout/header.ejs')%>
    <div class="container">
        <h1 class="text-center">
            <%=article.title%>
                <%     if(islogin && article.userid == user.id) {%>
                    <a href="/editArticle/<%=article.id%>" class="btn btn-info pull-right">编辑</a>
                    <%}%>

        </h1>
        <hr>
        <div>
            <%-article.content%>
        </div>
    </div>
    <%- include('../layout/footer.ejs')%>